package charpter06;

/**
 * Created by Miracle yaochengwei on 2022/5/26 15:01
 */
public class Homework02 {
    public static void main(String[] args) {
        /**
         * 2.实现判断一个整数，属于哪个范围:大于0;小于0;等于0 HomeworkO2.java
         * 思路:定义int n = 22;使用if -- else if -- else即可
         */
        int n = 0;
        if (n > 0){
            System.out.println("大于0");
        }else if (n < 0){
            System.out.println("小于0");
        }else{
            System.out.println("等于0");
        }

    }
}
